package com.ruoyi.cbs.evaluate.domain;

import java.math.BigDecimal;
import org.apache.commons.lang3.builder.ToStringBuilder;
import org.apache.commons.lang3.builder.ToStringStyle;
import com.ruoyi.common.annotation.Excel;
import com.ruoyi.common.core.domain.BaseEntity;

/**
 * 承包商阶段考核结果对象 cbs_evaluate_result
 * 
 * @author ruoyi
 * @date 2025-11-11
 */
public class EvaluateResult extends BaseEntity
{
    private static final long serialVersionUID = 1L;

    /** $column.columnComment */
    private Long id;

    /** 承包商id */
    @Excel(name = "承包商id")
    private Long contractorId;

    /** 项目id */
    @Excel(name = "项目id")
    private Long projectId;

    /** 考核模板id */
    @Excel(name = "考核模板id")
    private Long templateId;

    /** 考核阶段 */
    @Excel(name = "考核阶段")
    private String evaluateStage;

    /** 考核权重(百分比) */
    @Excel(name = "考核权重(百分比)")
    private Long weight;

    /** 阶段当前得分 */
    @Excel(name = "阶段当前得分")
    private Integer score;

    /** 加权成绩=score*weight */
    @Excel(name = "加权成绩=score*weight")
    private BigDecimal weightScore;

    /** 状态:0禁用 1可用 */
    @Excel(name = "状态:0禁用 1可用")
    private String status;

    /** 删除标志（1代表存在 0代表删除） */
    private String delFlag;

    public void setId(Long id) 
    {
        this.id = id;
    }

    public Long getId() 
    {
        return id;
    }

    public void setContractorId(Long contractorId) 
    {
        this.contractorId = contractorId;
    }

    public Long getContractorId() 
    {
        return contractorId;
    }

    public void setProjectId(Long projectId) 
    {
        this.projectId = projectId;
    }

    public Long getProjectId() 
    {
        return projectId;
    }

    public void setTemplateId(Long templateId) 
    {
        this.templateId = templateId;
    }

    public Long getTemplateId() 
    {
        return templateId;
    }

    public void setEvaluateStage(String evaluateStage) 
    {
        this.evaluateStage = evaluateStage;
    }

    public String getEvaluateStage() 
    {
        return evaluateStage;
    }

    public void setWeight(Long weight) 
    {
        this.weight = weight;
    }

    public Long getWeight() 
    {
        return weight;
    }

    public void setScore(Integer score) 
    {
        this.score = score;
    }

    public Integer getScore() 
    {
        return score;
    }

    public void setWeightScore(BigDecimal weightScore) 
    {
        this.weightScore = weightScore;
    }

    public BigDecimal getWeightScore() 
    {
        return weightScore;
    }

    public void setStatus(String status) 
    {
        this.status = status;
    }

    public String getStatus() 
    {
        return status;
    }

    public void setDelFlag(String delFlag) 
    {
        this.delFlag = delFlag;
    }

    public String getDelFlag() 
    {
        return delFlag;
    }

    @Override
    public String toString() {
        return new ToStringBuilder(this,ToStringStyle.MULTI_LINE_STYLE)
            .append("id", getId())
            .append("contractorId", getContractorId())
            .append("projectId", getProjectId())
            .append("templateId", getTemplateId())
            .append("evaluateStage", getEvaluateStage())
            .append("weight", getWeight())
            .append("score", getScore())
            .append("weightScore", getWeightScore())
            .append("status", getStatus())
            .append("delFlag", getDelFlag())
            .append("createBy", getCreateBy())
            .append("createTime", getCreateTime())
            .append("updateBy", getUpdateBy())
            .append("updateTime", getUpdateTime())
            .toString();
    }
}
